home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Demos
/
Evatac Software
/
Preditor 3.0
/
Tools
/
Language Module Builder
/
Sources
/
HtmlParse.h
< prev
next >
Wrap
Text File
|
1996-02-04
|
3KB
|
122 lines
/************************************************************
PascalParse.h
C Source to Preditor 3
© Copyright Evatac Software 1988-1995
All rights reserved
************************************************************/
#ifndef __PASCALPARSERH__
#define __PASCALPARSERH__
#include "LanguageModule.h"
/*
* * * * * * * * * CONSTANTS AND MACRO DEFINITIONS * * * * * * * * * *
*/
/*
* Here are the token type we return
*/
enum {
kHeader = 0,
kKeyword,
kComment,
kCustomKeyword,
kContent,
kReference
};
enum {
kSymbolLeftParen = '(', /* ( */
kSymbolRightParen = ')', /* ) */
kSymbolLeftHard = '[', /* [ */
kSymbolRightHard = ']', /* ] */
kSymbolLeftBrace = '{', /* { */
kSymbolRightBrace = '}', /* } */
kSymbolBackSlash = '\\', /* \ */
kSymbolQuote = '\'', /* ' */
kSymbolDoubleQuote = '\"', /* " */
kSymbolPound = '#', /* # */
kSymbolSemiColon = ';', /* ; */
kSymbolCommon = ',', /* , */
kSymbolDot = '.', /* . */
kSymbolColon = ':', /* : */
kSymbolEqual = '=', /* = */
kSymbolNot = '!', /* ! */
kSymbolMod = '%', /* % */
kSymbolXOr = '^', /* ^ */
kSymbolAnd = '&', /* & */
kSymbolStar = '*', /* * */
kSymbolMinus = '-', /* - */
kSymbolPlus = '+', /* + */
kSymbolBar = '|', /* | */
kSymbolComplement = '~', /* ~ */
kSymbolLess = '<', /* < */
kSymbolGreater = '>', /* > */
kSymbolQuestion = '?', /* ? */
kSymbolDivide = '/', /* / */
kSymbolFirstCompoundSymbol = 300,
kSymbolPointer = 300, /* -> */
kSymbolDotStar, /* .* */
kSymbolPointerStar, /* ->* */
kSymbolLeftShift, /* << */
kSymbolRightShift, /* >> */
kSymbolLessOrEqual, /* <= */
kSymbolGreaterOrEqual, /* >= */
kSymbolNotEqual, /* <> */
kSymbolAndAnd, /* && */
kSymbolOrOr, /* || */
kSymbolMultiplyAssign, /* *= */
kSymbolDivideAssign, /* /= */
kSymbolModAssign, /* %= */
kSymbolPlusAssign, /* += */
kSymbolMinusAssign, /* -= */
kSymbolLeftShiftAssign, /* <<= */
kSymbolRightShiftAssign, /* >>= */
kSymbolAndAssign, /* &= */
kSymbolXOrAssign, /* ^= */
kSymbolOrAssign, /* |= */
kSymbolAssign, /* := */
kSymbolEllipsis, /* ... */
kSymbolPoundPound, /* ## */
kSymbolLastCompoundSymbol,
kSymbolFirstSpecial = 400,
kSymbolIdentifier = 400,
kSymbolIntConstant,
kSymbolCharConstant,
kSymbolFloatConstant,
kSymbolStringLiteral,
kSymbolWhiteSpace,
kSymbolComment,
kSymbolPreprocessorDirective,
kSymbolInclude,
kSymbolContent,
kSymbolLastSpecial,
kSymbolReservedWord = 500,
kSymbolCustomWord
};
/*
* * * * * * * * * TYPE AND STRUCTURE DEFINITIONS * * * * * * * * * *
*/
/*
* * * * * * * * * FUNCTION PROTOTYPES * * * * * * * * * *
*/
/*
* * * * * * * * * FUNCTIONS IMPLEMENTED AS MACROS * * * * * * * *
*/
#endif